<!--
 * @Author: Haochen
 * @Date: 2021-12-07 15:49:55
 * @LastEditTime: 2021-12-13 10:56:15
 * @FilePath: \students-system\src\views\home\Home.vue
-->
<template>
  <div class="home">
    <el-container class="container">
      <el-aside width="200px">
        <SideMenu />

        <!-- <dl>
          <dt>学生管理</dt>
          <dd><router-link to="/home/addStudent">新增学生</router-link></dd>
          <dd><router-link to="/home/updateStudent">修改学生</router-link></dd>
          <dd><router-link to="/home/StudentsList">学生列表</router-link></dd>
        </dl>
        <dl>
          <dt>专业管理</dt>
          <dd><router-link to="/home/addSubject">新增专业</router-link></dd>
          <dd><router-link to="/home/deleteSubject">删除专业</router-link></dd>
        </dl>
        <dl>
          <dt>教师管理</dt>
          <dd><router-link to="/home/addTeacher">新增教师</router-link></dd>
          <dd><router-link to="/home/deleteTeacher">删除教师</router-link></dd>
        </dl>
        <dl>
          <dt>班级管理</dt>
          <dd><router-link to="/home/addClass">新增班级</router-link></dd>
          <dd><router-link to="/home/deleteClass">删除班级</router-link></dd>
          <dd><router-link to="/home/ClassesList">班级列表</router-link></dd>
        </dl>
        <dl>
          <dt><router-link to="/home/counter">计数器</router-link></dt>
        </dl> -->
      </el-aside>

      <el-container>
        <el-header height="60px">{{ title }}</el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
// @ is an alias to /src

import SideMenu from '../../components/common/SideMenu.vue';

export default {
  data() {
    return {
      title: '学生管理系统',
    };
  },
  methods: {},
  name: 'Home',
  components: {
    SideMenu,
  },
};
</script>

<style scoped lang="scss">
.home {
  width: 100vw;
  height: 100vh;
}

.container {
  height: 100vh;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
}

.el-header {
  line-height: 60px;
  font-size: 28px;
  font-weight: bold;
}

.el-aside {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  padding-top: 60px;
  .el-menu {
    width: 100%;
  }
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  display: flex;
  justify-content: center;
  align-content: center;
}

a {
  text-decoration: none;
}

a:link {
  color: #333;
}

a:hover {
  color: royalblue;
}

a:visited {
  color: #333;
}
</style>
